cmake_minimum_required(VERSION 3.10) 

project(opengl_test) 

include_directories(./include)
set(SRC test.cpp)

link_directories(../freeglut-3.4.0/build/lib)
set(GL_LIB freeglut_static opengl32 glu32 winmm gdi32)

link_directories(../opencv4.2.0/build/install/x64/mingw/lib)
set(CV_LIB opencv_imgproc420 opencv_imgcodecs420 opencv_core420 opencv_highgui420)

add_executable(opengl_test ${SRC})

target_link_libraries(opengl_test ${GL_LIB} ${CV_LIB})